class LinearSearch {
    static search(data, target) {
        for (let i = 0; i < data.length; i++) {
            if (data[i] == target) {
                return i
            }
        }

        return -1
    }
}

const data = [24, 18, 12, 9, 16, 66, 32, 4]
const result = LinearSearch.search(data, 16)
console.log(result)
